package com.anyou.mall.goo.parameter.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.anyou.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品参数对象 goo_goods_parameter
 *
 * @author ylj
 * @date 2022-03-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "商品参数")
@TableName(value = "goo_goods_parameter")
public class GooGoodsParameter
{
    private static final long serialVersionUID = 1L;

    /** 商品参数名编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("商品参数名编号")
    private Long goodsParameterId;

    /** 商品编号 */
    @ApiModelProperty("商品编号")
    @Excel(name = "商品编号")
    private Long goodsId;

    /** 商品参数名 */
    @ApiModelProperty("商品参数名")
    @Excel(name = "商品参数名")
    private String goodsParameterName;

    @ApiModelProperty("商品参数值list")
    @TableField(exist = false)
    List<GooGoodsParameterValue> parameterValueList;
}
